package com.study.app.service;

import com.study.common.core.domain.PageQuery;
import com.study.common.core.page.TableDataInfo;
import com.study.app.domain.bo.AppUserAgreementBo;
import com.study.app.domain.vo.AppUserAgreementVo;

import java.util.Collection;
import java.util.List;

/**
 * App隐私条款维护Service接口
 *
 * @author study
 * @date 2023-09-25
 */
public interface IAppUserAgreementService {

    /**
     * 查询App用户协议隐私条款维护
     */
    AppUserAgreementVo queryById(Long id);

    /**
     * 查询App用户协议隐私条款维护列表
     */
    TableDataInfo<AppUserAgreementVo> queryPageList(AppUserAgreementBo bo, PageQuery pageQuery);

    /**
     * 查询App用户协议隐私条款维护列表
     */
    List<AppUserAgreementVo> queryList(AppUserAgreementBo bo);

    /**
     * 新增App用户协议隐私条款维护
     */
    Boolean insertByBo(AppUserAgreementBo bo);

    /**
     * 修改App用户协议隐私条款维护
     */
    Boolean updateByBo(AppUserAgreementBo bo);

    /**
     * 校验并批量删除App用户协议隐私条款维护信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);

    /**
     * 获取最新的条款信息
     */
    AppUserAgreementVo getLatestInformation(Integer type);
}